package com.bigzero.workflow.modules.process.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * 我发起的任务列表返回
 * @author fanxinxiong
 * @date 2025-02-14 14:22
 **/
@Data
public class StartVo {

    /**流程实例id*/
    @Schema(description = "流程实例id")
    private String id;

    /**业务key*/
    @Schema(description = "业务key")
    private String businessKey;

    /**开始时间*/
    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**结束时间*/
    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    /**流程部署名称*/
    @Schema(description = "流程部署名称")
    private String definitionName;

    /**流程版本号*/
    @Schema(description = "流程版本号")
    private Integer definitionVersion;

    /**流程key*/
    @Schema(description = "流程key")
    private String definitionKey;

    /**任务id*/
    @Schema(description = "任务id")
    private String taskId;

    /**任务名称*/
    @Schema(description = "任务名称")
    private String taskName;

    /**1:进行中,2:已完成*/
    @Schema(description = "1:进行中,2:已完成")
    private Integer status;

}
